﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RedDragon.Common.Domain.warehouse
{
    /// <summary>
    /// 仓库表
    /// </summary>
    /// 
    [SugarTable("Warehouse")]
    public class Warehouse
    {
        /// <summary>
        /// 主键id
        /// </summary>
        [SugarColumn(IsIdentity = true, IsPrimaryKey = true)]
        public int WarehouseId { get; set; }
        /// <summary>
        /// 仓库编码
        /// </summary>
        public string? WarehousNumBer { get; set; }
        /// <summary>
        /// 仓库名称
        /// </summary>
        public string? WarehouseName { get; set; }
        /// <summary>
        /// 仓库地址
        /// </summary>
        public string? WarehouseAddr { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string? WarehouseRemark { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public bool WarehouseState { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime WarehouseCreateTime { get; set; }
        /// <summary>
        /// 创建人
        /// </summary>
        public string? WarehouseCreateName { get; set; }
        /// <summary>
        /// 是否删除
        /// </summary>
        public bool WarehouseIsDel { get; set; }

        /// <summary>
        /// 流水号 外键
        /// </summary>
        [SugarColumn(IsNullable = true, ColumnDataType = "Nvarchar(50)")]
        public string Serialnumber { get; set; }
    }
}
